Repository navigation
feat: adjust launcher window shadow settings - #854
Merged
Merged
Conversation
1. Add shadowRadius of 40 to the launcher window for a softer, more diffuse shadow 2. Make shadowOffset compositor-aware: use Qt.point(0, 10) on TreeLand and Qt.point(0, 25) elsewhere 3. Tweak dark theme shadow color to a warm dark tone Qt.rgba(0.23, 0.17, 0.17, 0.5) instead of pure black The previous fixed shadow offset did not render well under the TreeLand compositor and the shadow lacked radius control, resulting in a harsh appearance. This change enables a bigger blur radius, adapts the offset per compositor, and warms the dark theme shadow color to better match the Crystal color palette. Log: Launcher window shadow is now softer and adapts to the TreeLand compositor Influence: 1. Open the launcher in both TreeLand and non-TreeLand sessions and verify the shadow renders correctly with no clipping 2. Verify the shadow offset differs between TreeLand (10) and other compositors (25) 3. Test shadow appearance in light and dark themes 4. Confirm the window remains resizable/movable behavior unaffected (system resize and move still disabled) 5. Check blur behind the window still works together with the enlarged shadow radius feat: 调整启动器窗口阴影设置 1. 为启动器窗口添加 40 的阴影半径,使阴影更柔和、更弥散 2. 使阴影偏移适配不同合成器:TreeLand 上使用 Qt.point(0, 10),其他环境使 用 Qt.point(0, 25) 3. 将深色主题阴影颜色调整为暖暗色调 Qt.rgba(0.23, 0.17, 0.17, 0.5),替代 纯黑色 此前固定的阴影偏移在 TreeLand 合成器下渲染效果不佳,且阴影缺少半径控制, 显得生硬。此修改启用了更大的模糊半径,按合成器自适应偏移,并将深色主题阴 影调整为更贴合 Crystal 调色板的暖色调。 Log: 启动器窗口阴影更柔和,并适配 TreeLand 合成器 Influence: 1. 在 TreeLand 和非 TreeLand 会话中分别打开启动器,验证阴影渲染正确且无 裁切 2. 验证 TreeLand(10)与其他合成器(25)下的阴影偏移差异 3. 测试浅色和深色主题下的阴影显示效果 4. 确认窗口缩放/移动行为不受影响(系统缩放和移动仍为禁用) 5. 检查窗口背景模糊与增大后的阴影半径能否正常协同工作 PMS: TASK-396717
Reviewer's GuideUIUpdate the launcher window shadow radius, compositor-specific offset, and dark-theme color while leaving resize, move, and blur settings unchanged.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path="shell-launcher-applet/package/launcheritem.qml" line_range="352" />
<code_context>
- DWindow.shadowOffset: Qt.point(0, 25)
- DWindow.shadowColor: isDarkTheme ? Qt.rgba(0, 0, 0, 0.5) : Qt.rgba(0, 0, 0, 0.2)
+ DWindow.shadowRadius: 40
+ DWindow.shadowOffset: DesktopIntegration.isTreeLand() ? Qt.point(0, 10) : Qt.point(0, 25)
+ DWindow.shadowColor: isDarkTheme ? Qt.rgba(0.23, 0.17, 0.17, 0.5) : Qt.rgba(0, 0, 0, 0.2)
D.ColorSelector.family: D.Palette.CrystalColor
</code_context>
<issue_to_address>
**Non-TreeLand shadows use wrong offset**
When the launcher runs under a non-TreeLand Wayland compositor, `DesktopIntegration.isTreeLand()` returns true for every Wayland platform, so `DWindow.shadowOffset` selects 10 instead of 25 and the launcher shadow is positioned incorrectly.
Make `DesktopIntegration.isTreeLand()` distinguish TreeLand from other Wayland compositors before selecting the offset.
</issue_to_address>
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 语法正确,逻辑清晰 ✅ 通过 潜在问题: 建议: [] 2. 代码质量 ✅评价: 代码结构清晰,注释完整 ✅ 通过 潜在问题: 建议: [] 3. 代码性能 ✅评价: 性能良好,资源使用合理 ✅ 通过 潜在问题: 建议: [] 4. 代码安全 🔒评价: 存在0个安全漏洞 ✅ 通过
安全漏洞详情: 建议: [] 💡 改进建议代码示例本报告由 AI 代码审查工具自动生成 |
mhduiy
approved these changes
Nov 18, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, mhduiy The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
diffuse shadow
and Qt.point(0, 25) elsewhere
0.17, 0.5) instead of pure black
The previous fixed shadow offset did not render well under the TreeLand
compositor and the shadow lacked radius control, resulting in a harsh
appearance. This change enables a bigger blur radius, adapts the offset
per compositor, and warms the dark theme shadow color to better match
the Crystal color palette.
Log: Launcher window shadow is now softer and adapts to the TreeLand
compositor
Influence:
verify the shadow renders correctly with no clipping
compositors (25)
(system resize and move still disabled)
shadow radius
feat: 调整启动器窗口阴影设置
用 Qt.point(0, 25)
纯黑色
此前固定的阴影偏移在 TreeLand 合成器下渲染效果不佳,且阴影缺少半径控制,
显得生硬。此修改启用了更大的模糊半径,按合成器自适应偏移,并将深色主题阴
影调整为更贴合 Crystal 调色板的暖色调。
Log: 启动器窗口阴影更柔和,并适配 TreeLand 合成器
Influence:
裁切
PMS: TASK-396717
Summary by Sourcery
Soften the launcher window shadow and adapt its rendering across compositors and themes.
New Features:
Bug Fixes: